{% extends 'plugins/plugin_base.html' %}{% load i18n %}
{% block content %}
    <h2>{% trans "Upload a plugin" %}</h2>
    <p class="help">{% trans "To upload a new plugin or update an existing one, you can specify the zipped file in this form." %}</p>
    <p>{% trans "Alternatively, to update an existing plugin, you can also open the plugin's details view and add a new version from there." %}</p>
    {% if form.non_field_errors %}
    <div class="alert alert-error">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {% for error in form.non_field_errors %}
            <p>{{ error }}</p>
        {% endfor %}
    </div>
    {% endif %}
    <form action="" method="post" enctype="multipart/form-data" class="horizontal">{% csrf_token %}
        {% include "plugins/form_snippet.html" %}
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">{% trans "Upload" %}</button>
        </div>
    </form>

{% endblock %}
